package com.github.shuaidd.rest;

import org.activiti.rest.common.application.DefaultContentTypeResolver;
import org.activiti.rest.service.api.RestResponseFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 描述 启用 activiti 提供的rest api
 *
 * @author ddshuai
 * @date 2020-07-14 21:06
 **/
@Configuration
@ComponentScan("org.activiti.rest")
public class RestApiCOnfiguration {

    @Bean
    public RestResponseFactory restResponseFactory() {
        return new RestResponseFactory();
    }

    @Bean
    public DefaultContentTypeResolver contentTypeResolver() {
        return new DefaultContentTypeResolver();
    }
}
